-- GENERATED SPELL FOR [Firebrand Legionnaire] --


function spell0_9260(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_9260', 6287, 1)
end

function spell1_9260(pUnit, Event) --@Mark of Flames,n/a--
pUnit:FullCastSpellOnTarget(15128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9260', 1000, 1)
end

function spell2_9260(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9260', 8324, 1)
end

function Sorts_9260(pUnit, Event)
local choix_sorts_9260 = math.random(0, 2)
if choix_sorts_9260 == 0 then
pUnit:RegisterEvent('spell0_9260', 1, 1)
end
if choix_sorts_9260 == 1 then
pUnit:RegisterEvent('spell1_9260', 1, 1)
end
if choix_sorts_9260 == 2 then
pUnit:RegisterEvent('spell2_9260', 1, 1)
end
end

function mob9260_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9260', math.random(1500, 3000), 1)
end

function mob9260_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9260_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9260_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9260, 1, 'mob9260_Action')
RegisterUnitEvent(9260, 2, 'mob9260_Leave')
RegisterUnitEvent(9260, 3, 'mob9260_Kill')
RegisterUnitEvent(9260, 4, 'mob9260_Die')
